/* 菜单页面样式 */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.category-filter select {
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.categories-section {
    margin-bottom: 30px;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.category-card {
    background: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-card.active {
    background: #3498db;
    color: white;
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.dish-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.dish-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.dish-info {
    padding: 20px;
}

.dish-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.dish-description {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 14px;
}

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dish-price {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

.dish-stock {
    font-size: 14px;
    color: #7f8c8d;
}

.add-to-cart {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #27ae60;
}

.add-to-cart:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-filter {
        margin-top: 15px;
        width: 100%;
    }
    
    .dishes-grid {
        grid-template-columns: 1fr;
    }
}